import request from "@/utils/request";

// 查询后台导入用户白名单列表
export function companyList(query) {
  return request({
    url: "/mall/giftCompany/list",
    method: "get",
    params: query,
  });
}

//查询礼品公司

export function getGiftCompany(id) {
  return request({
    url: "/mall/giftCompany/" + id,
    method: "get",
  });
}
// 新增礼品公司
export function addGiftCompany(data) {
  return request({
    url: "/mall/giftCompany",
    method: "post",
    data: data,
  });
}
// 编辑礼品公司
export function updateGiftCompany(data) {
  return request({
    url: "/mall/giftCompany",
    method: "put",
    data: data,
  });
}
// 删除礼品公司
export function delGiftCompany(id) {
  return request({
    url: "/mall/giftCompany/" + id,
    method: "delete",
  });
}
// 是否启用
export function updateIsStatus(data) {
  return request({
    url: "/mall/giftCompany/updateIsStatus",
    method: "put",
    data: data,
  });
}
